# -*- coding: utf-8 -*- 

###########################################################################
## Python code generated with wxFormBuilder (version Jun 17 2015)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc

###########################################################################
## Class MyFrame1
###########################################################################

class MyFrame1 ( wx.Frame ):
	
	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"计算器", pos = wx.DefaultPosition, size = wx.Size( 220,270 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
		
		self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
		
		bSizer1 = wx.BoxSizer( wx.VERTICAL )
		
		self.m_textCtrl1 = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( 200,30 ), 0 )
		bSizer1.Add( self.m_textCtrl1, 0, wx.ALL, 5 )
		
		gSizer1 = wx.GridSizer( 4, 4, 0, 0 )
		
		self.m_button1 = wx.Button( self, wx.ID_ANY, u"7", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button1, 0, wx.ALL, 5 )
		
		self.m_button2 = wx.Button( self, wx.ID_ANY, u"8", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button2, 0, wx.ALL, 5 )
		
		self.m_button3 = wx.Button( self, wx.ID_ANY, u"9", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button3, 0, wx.ALL, 5 )
		
		self.m_button4 = wx.Button( self, wx.ID_ANY, u"+", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button4, 0, wx.ALL, 5 )
		
		self.m_button5 = wx.Button( self, wx.ID_ANY, u"4", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button5, 0, wx.ALL, 5 )
		
		self.m_button6 = wx.Button( self, wx.ID_ANY, u"5", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button6, 0, wx.ALL, 5 )
		
		self.m_button7 = wx.Button( self, wx.ID_ANY, u"6", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button7, 0, wx.ALL, 5 )
		
		self.m_button8 = wx.Button( self, wx.ID_ANY, u"-", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button8, 0, wx.ALL, 5 )
		
		self.m_button9 = wx.Button( self, wx.ID_ANY, u"1", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button9, 0, wx.ALL, 5 )
		
		self.m_button10 = wx.Button( self, wx.ID_ANY, u"2", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button10, 0, wx.ALL, 5 )
		
		self.m_button11 = wx.Button( self, wx.ID_ANY, u"3", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button11, 0, wx.ALL, 5 )
		
		self.m_button12 = wx.Button( self, wx.ID_ANY, u"×", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button12, 0, wx.ALL, 5 )
		
		self.m_button13 = wx.Button( self, wx.ID_ANY, u"0", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button13, 0, wx.ALL, 5 )
		
		self.m_button14 = wx.Button( self, wx.ID_ANY, u".", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button14, 0, wx.ALL, 5 )
		
		self.m_button15 = wx.Button( self, wx.ID_ANY, u"=", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button15, 0, wx.ALL, 5 )
		
		self.m_button16 = wx.Button( self, wx.ID_ANY, u"/", wx.DefaultPosition, wx.Size( 40,40 ), 0 )
		gSizer1.Add( self.m_button16, 0, wx.ALL, 5 )
		
		
		bSizer1.Add( gSizer1, 1, wx.EXPAND, 5 )
		
		
		self.SetSizer( bSizer1 )
		self.Layout()
		
		self.Centre( wx.BOTH )
		
		# Connect Events
		self.m_button1.Bind( wx.EVT_BUTTON, self.NumberSeven )
		self.m_button2.Bind( wx.EVT_BUTTON, self.NumberEight )
		self.m_button3.Bind( wx.EVT_BUTTON, self.NumberNine )
		self.m_button4.Bind( wx.EVT_BUTTON, self.SymbolAdd )
		self.m_button5.Bind( wx.EVT_BUTTON, self.NumberFour )
		self.m_button6.Bind( wx.EVT_BUTTON, self.NumberFive )
		self.m_button7.Bind( wx.EVT_BUTTON, self.NumberSix )
		self.m_button8.Bind( wx.EVT_BUTTON, self.SymbolMinus )
		self.m_button9.Bind( wx.EVT_BUTTON, self.NumberOne )
		self.m_button10.Bind( wx.EVT_BUTTON, self.NumberTwo )
		self.m_button11.Bind( wx.EVT_BUTTON, self.NumberThree )
		self.m_button12.Bind( wx.EVT_BUTTON, self.SymbolMultiply )
		self.m_button13.Bind( wx.EVT_BUTTON, self.NumberZero )
		self.m_button14.Bind( wx.EVT_BUTTON, self.SymbolPoint )
		self.m_button15.Bind( wx.EVT_BUTTON, self.SymbolEqual )
		self.m_button16.Bind( wx.EVT_BUTTON, self.SymbolDivided )
	
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def NumberSeven( self, event ):
		event.Skip()
	
	def NumberEight( self, event ):
		event.Skip()
	
	def NumberNine( self, event ):
		event.Skip()
	
	def SymbolAdd( self, event ):
		event.Skip()
	
	def NumberFour( self, event ):
		event.Skip()
	
	def NumberFive( self, event ):
		event.Skip()
	
	def NumberSix( self, event ):
		event.Skip()
	
	def SymbolMinus( self, event ):
		event.Skip()
	
	def NumberOne( self, event ):
		event.Skip()
	
	def NumberTwo( self, event ):
		event.Skip()
	
	def NumberThree( self, event ):
		event.Skip()
	
	def SymbolMultiply( self, event ):
		event.Skip()
	
	def NumberZero( self, event ):
		event.Skip()
	
	def SymbolPoint( self, event ):
		event.Skip()
	
	def SymbolEqual( self, event ):
		event.Skip()
	
	def SymbolDivided( self, event ):
		event.Skip()
	

